package com.tbs.parkingsaleapp.UI.Listenners;

import android.content.Context;
import android.view.View;
import android.widget.Toast;
import com.tbs.parkingsaleapp.UI.LoginOrSign.Base.FaceLoginFragment;
import com.tbs.parkingsaleapp.UI.LoginOrSign.LoginOrSign;

public class FaceLoginClicker extends  TakeFaceStrOnClickListenner{
    public FaceLoginClicker(Context c, int request) {
        super(c, request);
    }
    FaceLoginFragment fg;
    public FaceLoginClicker(FaceLoginFragment fg)
    {
        super(fg.getContext(), LoginOrSign.R_Login);
        this.fg=fg;
    }

    @Override
    public void onClick(View view) {
        if(fg.LoginReady())
        super.onClick(view);
        else
        {
            Toast.makeText(fg.getContext(), "请输入身份证号", Toast.LENGTH_SHORT).show();
        }
    }
}
